package jmine.tec.web.wicket.component.menu;

import java.util.List;

import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;

/**
 * @author katsuo.ogawa
 * @date Jul 5, 2011
 */
public class ListLink extends ListView<MenuLink> {

    /**
     * Construtor.
     * 
     * @param id Id.
     * @param links List
     */
    public ListLink(String id, List<MenuLink> links) {
        super(id, links);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void populateItem(ListItem<MenuLink> item) {
        MenuLink menuLink = item.getModelObject();
        item.add(menuLink.getLink());
    }

}
